package com.gopay.common.domain.logging;

import com.gopay.common.domain.BaseEntity;

/**
 * 日志发送对象
 * 
 * @LogRequest.java
 * @author yaobo
 * @2013-4-23 上午10:05:23 www.gopay.com.cn Inc.All rights reserved.
 */
public class LogSender extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = -1696469647333858595L;

    /**
     * 国付宝订单号
     */
    private String targetId;

    /**
     * 执行Service接口方法
     */
    private String serviceName;

    /**
     * 发送系统
     */
    private String from;

    /**
     * 发送时间
     */
    private String fromTime;

    /**
     * 发送内容
     */
    private String data;

    /**
     * 发送类型
     */
    private String type;

    /**
     * 唯一标识
     */
    private String tkey;

    public String getTkey() {
        return tkey;
    }

    public void setTkey(String tkey) {
        this.tkey = tkey;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getFromTime() {
        return fromTime;
    }

    public void setFromTime(String fromTime) {
        this.fromTime = fromTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append(getTargetId() + "|");
        sb.append(getFrom() + "|");
        sb.append(getServiceName() + "|");
        sb.append(getFromTime() + "|");
        sb.append(getData() + "|");
        sb.append(getType());

        return sb.toString();
    }
}
